<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="utf-8">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
var xDomain = document.domain.split(".");
if (xDomain.length >= 2){
    document.domain=xDomain[xDomain.length-2] + "." + xDomain[xDomain.length-1];
}
function ajax(option){
	var xhr = (window.ActiveXObject)?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();
	try{
		xhr.open(option.method||"POST",option.url,true);
		xhr.setRequestHeader("Content-Type",option.contentType||"application/x-www-form-urlencoded");
		xhr.onreadystatechange = handleStateChange;
		xhr.send(option.data);
	}catch (ex) {
		return "";
	}
	function handleStateChange(){
		if (xhr!=null&&xhr.readyState==4){
			if(option.callback){
				parent[option.callback](xhr.responseText);
			}
		} 
	}
}
</script>       
</head>
<body></body>
</html>